package org.example;

import lombok.NonNull;
import lombok.RequiredArgsConstructor;

public interface INode {

    @RequiredArgsConstructor
    class TreeNode {
        int height;
        @NonNull
        int val;
        Tree.TreeNode left;
        Tree.TreeNode right;

        @Override
        public String toString() {
            return "cur: " + val + " height:" + height;
        }
    }
}
